package com.example.demo.utils;

import lombok.Getter;

/**
 * web请求响应码
 */
@Getter
public enum ApiResponseCodeEnum {

    SUCCESS(10000, "请求成功"),
    IDENTITY_VERIFY_ERROR(20000, "权限认证失败"),
    PARAM_ERROR(30000, "请求参数错误"),
    BIZ_ERROR(40000, "业务处理错误"),
    SERVER_ERROR(50000, "服务器内部错误"),
    SENDMSG_ERROR(50026, "发送短信失败"),
    ;

    /** 响应码 */
    private Integer code;
    /** 响应信息 */
    private String msg;

    ApiResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
